from rest_framework import serializers
from order.models import Order


class OrderSerialzier(serializers.ModelSerializer):
    class Meta:
        model = Order
        fields = '__all__'
        read_only_fields = ('ctime','id','user','dealed','canceled')
        ordering = ['-price','ctime']

